/*项目根目录*/
var path = "/picture";


//arguments：js内置参数,包含方法的所有传入参数 等同于java String...args
//非空验证方法，任意参数
let isNull = function () {
    for (var i = 0; i < arguments.length; i++) {
        if (arguments[i] == ''||arguments[i] ==null||arguments[i].length==0){
            return true;
        }
    }
    return false;
}


var userLoginHtml = '<div class="layui-form-item">\n' +
    '                        <label class="layadmin-user-login-icon layui-icon layui-icon-username"\n' +
    '                               for="username"></label>\n' +
    '                        <input type="text" name="username" id="username" lay-verify="required" placeholder="用户名"\n' +
    '                               class="layui-input">\n' +
    '                    </div>\n' +
    '                    <div class="layui-form-item">\n' +
    '                        <label class="layadmin-user-login-icon layui-icon layui-icon-password"\n' +
    '                               for="password"></label>\n' +
    '                        <input type="password" name="password" id="password" lay-verify="required"\n' +
    '                               placeholder="密码" class="layui-input">\n' +
    '                </div>';

var phoneLoginHtml = '<div class="layui-form-item">\n' +
    '                    <label class="layadmin-user-login-icon layui-icon layui-icon-cellphone-fine"\n' +
    '                           for="phone"></label>\n' +
    '                    <input type="text" name="phone" id="phone" lay-verify="required|phone" placeholder="手机号码"\n' +
    '                           class="layui-input">\n' +
    '                </div>\n' +
    '                <div class="layui-form-item">\n' +
    '                    <label class="layadmin-user-login-icon layui-icon layui-icon-vercode"\n' +
    '                           for="phoneYzm"></label>\n' +
    '                    <input type="text" name="phoneYzm" id="phoneYzm" lay-verify="required"\n' +
    '                           placeholder="验证码" class="layui-input" style="width: 50%;float: left">\n' +
    '                    <button class="layui-btn" id="getPhoneYzm" style="display: inline-block;background-color: rgba(5,4,5,0.72);" >获取验证码</button>\n' +
    '            </div>';

var emailLoginHtml = '<div class="layui-form-item">\n' +
    '                    <label class="layadmin-user-login-icon layui-icon layui-icon-email"\n' +
    '                           for="email"></label>\n' +
    '                    <input type="text" name="email" id="email" lay-verify="required|email" placeholder="邮箱"\n' +
    '                           class="layui-input">\n' +
    '                </div>\n' +
    '                <div class="layui-form-item">\n' +
    '                    <label class="layadmin-user-login-icon layui-icon layui-icon-vercode"\n' +
    '                           for="emailYzm"></label>\n' +
    '                    <input type="text" name="emailYzm" id="emailYzm" lay-verify="required"\n' +
    '                           placeholder="验证码" class="layui-input" style="width: 50%;float: left">\n' +
    '                    <button class="layui-btn" id="getEmailYzm" style="display: inline-block;background-color: rgba(5,4,5,0.72);">获取验证码</button>\n' +
    '            </div>';



